package com.example.hxds.bff.driver.service.impl;

import cn.hutool.core.map.MapUtil;
import com.example.hxds.bff.driver.controller.form.InsertOrderGpsForm;
import com.example.hxds.bff.driver.feign.NebulaServiceApi;
import com.example.hxds.bff.driver.service.OrderGpsService;
import com.example.hxds.common.util.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author XUYANG
 * @Date 2024-04-01 14:34
 */
@Service
@Slf4j
public class OrderGpsServiceImpl implements OrderGpsService {
    @Resource
    private NebulaServiceApi nebulaServiceApi;

    @Override
    public int insertOrderGps(InsertOrderGpsForm form) {
        R r=nebulaServiceApi.insertOrderGps(form);
        int rows= MapUtil.getInt(r,"rows");
        return rows;
    }
}
